package com.syn.synold4s.activity.base;

import androidx.viewbinding.ViewBinding;

import com.gaoyi.basemodule.baseact.BaseViewActivity;
import com.gaoyi.basemodule.basebean.Event;
import com.gaoyi.basemodule.baseconstant.EventCode;
import com.syn.synold4s.control.dialog.AlertDialog;

public abstract class BaseAlertViewActivity<V extends ViewBinding> extends BaseViewActivity<V> {
    @Override
    protected void event(Event event) {
        if (event.getWhat() == EventCode.EVENT_ALERT) {
            new AlertDialog(mContext, event.getWearer(), event.getTel(), event.getAddress(),event.getType(),event.getAlertTime()).show(getSupportFragmentManager());
        }
    }
}
